package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ApCategoryService;
import io.swagger.annotations.Api;
import org.springframework.util.DigestUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 86150
 */
@RestController
@RequestMapping("/category")
@Api(tags = "type",description = "商品类型")
public class ApCategoryController {
    @Resource
    private ApCategoryService categoryService;

    /**
     * 用户的商品类型列表
     * @return
     */
    @GetMapping("list")
    public ResponseResult list(){
        return categoryService.catlist();
    }

}
